import { useGlobal } from '@/lib/global'

/**
 * 空白博客 列表
 * @returns {JSX.Element}
 * @constructor
 */
const PostListEmpty = ({ currentSearch }) => {
  const { locale } = useGlobal()
  return (
    <div className='flex w-full items-center justify-center min-h-screen mx-auto md:-mt-20'>
      <p className='text-gray-500 dark:text-gray-300'>
        {locale.COMMON.NO_RESULTS_FOUND}{' '}
        {currentSearch && <div>{currentSearch}</div>}
      </p>
    </div>
  )
}
export default PostListEmpty
